package com.mz.mattress.client.service;

import com.mz.mattress.api.common.Result;
import com.mz.mattress.api.entity.Device;
import com.mz.mattress.api.enums.DeviceOptionEnum;
import com.mz.mattress.api.mattress.req.InspectionReq;

/**
 *
 */
public interface DeviceService {

    Result<Device> info(String deviceCode);

    Result<Device> queryStatus(String deviceCode);

    //提交检测
    void inspection(InspectionReq req);

    //开始
    void start(String deviceCode, String productKey);

    //暂停
    void pause(String deviceCode, String productKey);

    //结束
    void end(String deviceCode, String productKey);

    //调节选项
    void changeOption(String deviceCode, String productKey, DeviceOptionEnum optionEnum, Integer value);

    //生成微信小程序二维码
    Result<String> genQrCode(Integer id);

}
